package com.itehima.springbootcondition;

import com.itehima.springbootcondition.domain.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootConditionApplication {

    public static void main(String[] args) {
        //开启springboot项目.返回spring容器对象
        ConfigurableApplicationContext context = SpringApplication.run(SpringbootConditionApplication.class, args);
//        Object redisTemplate = context.getBean("redisTemplate");
//        System.out.println(redisTemplate);
        Object user1 = context.getBean("user1");
        System.out.println(user1);
    }
}
